package com.telit.uav.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("comm_team_user")
public class CommTeamUser implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键", dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "用户id", dataType = "Long")
    private Long userId;

    @ApiModelProperty(value = "队伍id", dataType = "Long")
    private Long teamId;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    public CommTeamUser(Long teamId,Long userId,String realName){
        this.userId = userId;
        this.teamId = teamId;
        this.realName = realName;
    }

    private static final long serialVersionUID = 1L;

}
